package com.etonedu.meals.bean;

import android.os.Parcel;
import android.os.Parcelable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

@Entity
public class AttendanceDate implements Parcelable {
    @Id
    private Long id;
    private int attenType;// 1.刷卡 2.刷脸
    private String cardNo;
    private String userId;
    private String roleType;
    private String path;
    private String attenTime;
    private String imageStr;
    private String isUpdatePic;
    private String deviceCode;
    private String base64;
    private String mode; // 5.课室考勤
    private String conut; // 刷卡次数
    private String face;
    private String userIds;
    private int noClass;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getAttenType() {
        return attenType;
    }

    public void setAttenType(int attenType) {
        this.attenType = attenType;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getAttenTime() {
        return attenTime;
    }

    public void setAttenTime(String attenTime) {
        this.attenTime = attenTime;
    }

    public String getImageStr() {
        return imageStr;
    }

    public void setImageStr(String imageStr) {
        this.imageStr = imageStr;
    }

    public String getIsUpdatePic() {
        return isUpdatePic;
    }

    public void setIsUpdatePic(String isUpdatePic) {
        this.isUpdatePic = isUpdatePic;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getBase64() {
        return base64;
    }

    public void setBase64(String base64) {
        this.base64 = base64;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getConut() {
        return conut;
    }

    public void setConut(String conut) {
        this.conut = conut;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public String getUserIds() {
        return userIds;
    }

    public void setUserIds(String userIds) {
        this.userIds = userIds;
    }

    public int getNoClass() {
        return noClass;
    }

    public void setNoClass(int noClass) {
        this.noClass = noClass;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeInt(this.attenType);
        dest.writeString(this.cardNo);
        dest.writeString(this.userId);
        dest.writeString(this.roleType);
        dest.writeString(this.path);
        dest.writeString(this.attenTime);
        dest.writeString(this.imageStr);
        dest.writeString(this.isUpdatePic);
        dest.writeString(this.deviceCode);
        dest.writeString(this.base64);
        dest.writeString(this.mode);
        dest.writeString(this.conut);
        dest.writeString(this.face);
        dest.writeString(this.userIds);
        dest.writeInt(this.noClass);
    }

    public AttendanceDate() {
    }

    protected AttendanceDate(Parcel in) {
        this.id = (Long) in.readValue(Long.class.getClassLoader());
        this.attenType = in.readInt();
        this.cardNo = in.readString();
        this.userId = in.readString();
        this.roleType = in.readString();
        this.path = in.readString();
        this.attenTime = in.readString();
        this.imageStr = in.readString();
        this.isUpdatePic = in.readString();
        this.deviceCode = in.readString();
        this.base64 = in.readString();
        this.mode = in.readString();
        this.conut = in.readString();
        this.face = in.readString();
        this.userIds = in.readString();
        this.noClass = in.readInt();
    }

    public static final Creator<AttendanceDate> CREATOR = new Creator<AttendanceDate>() {
        @Override
        public AttendanceDate createFromParcel(Parcel source) {
            return new AttendanceDate(source);
        }

        @Override
        public AttendanceDate[] newArray(int size) {
            return new AttendanceDate[size];
        }
    };
}
